The expressive power of CHR with priorities
نویسندگان
چکیده
Constraint Handling Rules (CHR) is a committed-choice declarative language which has been originally designed for writing constraint solvers and which is nowadays a general purpose language. Recently the language has been extended by introducing user-definable (static or dynamic) rule priorities. The resulting language allows a better control over execution while retaining a declarative and flexible style of programming. In this paper we study the expressive power of this language. We first show that, in the presence of priorities, differently from the case of standard CHR, considering more than two atoms in the heads of rules does not augment the expressive power of the language. Next we show that also dynamic Email addresses: [email protected] (Maurizio Gabbrielli), [email protected] (Jacopo Mauro), [email protected] (Maria Chiara Meo) Preprint submitted to Information and Computation May 6, 2013 priorities do not augment the expressive power w.r.t. static priorities. These results are proved by providing explicitly a translation of one language into another one, which preserves a reference semantics. Finally we show that CHR with priorities is strictly more expressive than standard CHR (under the theoretical operational semantics). This result is obtained by adapting to the CHR case a notion of language encoding which allows to compare Turing powerful languages.
منابع مشابه
A On the expressive power of multiple heads in CHR
Constraint Handling Rules (CHR) is a committed-choice declarative language which has been originally designed for writing constraint solvers and which is nowadays a general purpose language. CHR programs consist of multi-headed guarded rules which allow to rewrite constraints into simpler ones until a solved form is reached. Many empirical evidences suggest that multiple heads augment the expre...
متن کاملExpressiveness of Multiple Heads in CHR
Constraint Handling Rules (CHR) is a general purpose, committedchoice declarative language which, differently from other similar languages, uses multi-headed (guarded) rules. In this paper we prove that multiple heads augment the expressive power of the language. In fact, we first show that restricting to single head rules affects the Turing completeness of CHR, provided that the underlying sig...
متن کاملPresenting the strategy of Iran-Iraq trade interactions based on importance-performance analysis
The development of trade with Islamic countries in the region, especially its neighbors, is important because it reduces the vulnerability of the countrychr(chr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39')))39chr(chr(chr('39')39chr('39'))39chr(chr('39')39chr('39'))))s economy by developing strategic ties and expanding cooperation with countries in the region and the world. Expanding rela...
متن کاملRepresenting Priorities in Logic Programs
Reasoning with priorities is a central topic in knowledge representation. A number of techniques for prioritized reasoning have been developed in the eld of AI, but existing logic programming lacks the mechanism of explicit representation of priorities in a program. In this paper, we introduce a framework for representing priorities in logic programming. Prioritized logic programming represents...
متن کاملImplementing Dynamic Programming Recurrences in Constraint Handling Rules with Rule Priorities
Dynamic Programming (DP) is an important technique used in solving optimization problems. A close correspondence between DP recurrences and Constraint Handling Rules with rule priorities (CHR) yields natural implementations of DP problems in CHR. In this work, we evaluate different implementation techniques with respect to their runtime. From our results we derive a set of guidelines for implem...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Inf. Comput.
دوره 228 شماره
صفحات -
تاریخ انتشار 2013